<?php

require('inc/init.inc.php');

require_once(PATH.'class/gestion/zones.class.php');
require_once(PATH.'class/gestion/clients.class.php');
require_once(PATH.'class/gestion/contacts.class.php');
require_once(PATH.'class/gestion/modeles.class.php');
require_once(PATH.'class/gestion/machines.class.php');
dohtml_init();
if (isset($_POST['critere']))
{	
	$critere = $_POST['critere'];
/*
	echo "critere: $critere";
*/
	echo "<ul>";
	echo "<li><a href='#Clients'>Clients</a></li>";
	echo "<li><a href='#Contacts'>Contacts</a></li>";
	echo "<li><a href='#Modeles'>Modeles</a></li>";
	echo "<li><a href='#Machines'>Machines</a></li>";
	echo "</ul>";
	echo "<a name='Clients'/> </a><h3>Clients <a href='#haut_page'>(haut)</a></h3>";
	Clients::Tableau_rapide($db, $critere);
	echo "<a name='Contacts'/> </a><h3>Contacts <a href='#haut_page'>(haut)</a></h3>";
	Contacts::Tableau_rapide($db, $critere);
	echo "<a name='Modeles'/> </a><h3>Modeles <a href='#haut_page'>(haut)</a></h3>";
	Modeles::Tableau_rapide($db, $critere);
	echo "<a name='Machines'/> </a><h3>Machines <a href='#haut_page'>(haut)</a></h3>";
	Machines::Tableau_rapide($db, $critere);
?>

<?php
}
// Finalisation
require(PATH.'inc/final.inc.php');
?>
